<%--
  Created by IntelliJ IDEA.
  User: DY
  Date: 2021/12/21
  Time: 10:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>权限修改</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/admin.css">
    <script src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 角色信息修改</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="${pageContext.request.contextPath}/sysPermissionController/sysPermissionUpdate">
            <input type="hidden" name="permissionId" id="permissionId" value="${sysPermission_db.permissionId}">
            <div class="form-group">
                <div class="label">
                    <label>父ID：</label>
                </div>
                <div class="field">
                    <select name="pIdSTR" class="input w50">
                        <option>-----请选择父级节点-----</option>
                        <c:forEach items="${sysPermissionList_db}" var="sysPermission">
                            <c:if test="${sysPermission.permissionId==sysPermission_db.pId}">
                                <option id="${sysPermission.permissionId}" value="${sysPermission.permissionId}" selected="selected">${sysPermission.permissionName}</option>
                            </c:if>
                            <c:if test="${sysPermission.permissionId!=sysPermission_db.pId}">
                                <option id="${sysPermission.permissionId}" value="${sysPermission.permissionId}">${sysPermission.permissionName}</option>
                            </c:if>
                        </c:forEach>

                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>权限名称：</label>
                </div>
                <div class="field">
                    <input type="text" name="permissionName" id="permissionName" class="input w50" placeholder="请输入权限名称" value="${sysPermission_db.permissionName}">
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>权限编号：</label>
                </div>
                <div class="field">
                    <input type="text" name="permissionCode" id="permissionCode" class="input w50" placeholder="请输入权限编号" value="${sysPermission_db.permissionCode}">
                </div>
            </div>

            <div class="form-group">
            <div class="label">
                <label>图标：</label>
            </div>
            <div class="field">
                <input type="text" name="icon" id="icon" class="input w50" placeholder="请输入图标" value="${sysPermission_db.icon}">
            </div>
        </div>
            <div class="form-group">
                <div class="label">
                    <label>请求路径：</label>
                </div>
                <div class="field">
                    <input type="text" name="url" id="url" class="input w50" placeholder="请输入请求路径" value="${sysPermission_db.url}">
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>类型：</label>
                </div>
                <div class="field">
                    <input type="text" name="type" id="type" class="input w50" placeholder="请输入类型" value="${sysPermission_db.type}">
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>状态：</label>
                </div>
                <div class="field">
                    <input type="text" name="state" id="state" class="input w50" placeholder="请输入状态" value="${sysPermission_db.state}">
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 修改</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
